package com.bytz.modules.cms.c4c.model;

import lombok.Getter;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@Getter
@XmlRootElement(name = "entry", namespace = "http://www.w3.org/2005/Atom")
@XmlAccessorType(XmlAccessType.FIELD)
public class C4cXmlQuoteOpportunityResponse {

    @XmlElement(name = "content", namespace = "http://www.w3.org/2005/Atom")
    private Content content;

    @Getter
    public static class Content {
        @XmlElement(name = "properties", namespace = "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata")
        private Properties properties;
    }

    @Getter
    public static class Properties {
        @XmlElement(name = "RelationshipRoleCode", namespace = "http://schemas.microsoft.com/ado/2007/08/dataservices")
        private String relationshipRoleCode;

        @XmlElement(name = "ID", namespace = "http://schemas.microsoft.com/ado/2007/08/dataservices")
        private String id;

        @XmlElement(name = "TypeCode", namespace = "http://schemas.microsoft.com/ado/2007/08/dataservices")
        private String typeCode;

        @XmlElement(name = "QuoteID", namespace = "http://schemas.microsoft.com/ado/2007/08/dataservices")
        private String quoteID;

        @XmlElement(name = "RelationshipRoleCodeText", namespace = "http://schemas.microsoft.com/ado/2007/08/dataservices")
        private String relationshipRoleCodeText;

        @XmlElement(name = "TypeCodeText", namespace = "http://schemas.microsoft.com/ado/2007/08/dataservices")
        private boolean typeCodeText;

    }
}
